<%@ page language="java"  pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title><fmt:message key="companyDetail.heading"/></title>

<script type="text/javascript">
$(document).ready(function(){
	setEmptyCheck("companyName:address:comPhone:comEmail");	
	
	});
	
$(function(){
	CKEDITOR.replace( 'aboutUs',
			{
			toolbar : 'Basic',
			width : '750px',
			height : '250px'
			});
	})
</script>
  </head>
  <body>
  <form:form method="post" id="company"  commandName="company" action="editCompany.do">	
  <form:hidden path="companyId"/>		
  <ul>
	  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
	  <tr>
			<td class="titleonly" >&gt;&gt;公司信息列表</td>
			<td class="titleonly_1" align="right"> <a href="${ctxPath}/admin/system/companys.do?cmd=viewDetail&companyId=1"><img src="${ctxPath}/image/amend.gif" />&nbsp;&nbsp;<strong>返回</strong></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
	 </tr>
	 </table>
	</ul>
	<ul>
	  <li>
	    <table width="100%"  border="0" cellpadding="0" cellspacing="0">
           <tr>
			<td class="tableinfo center" width="10%" height="50" >公司名称</td>
            <td class="tableinfo">
 				<input name="companyName" type="text" class="inputbox240" id=companyName check=2 tip="不能为空" value="${company.companyName}" />
            </td>
          </tr>
		  <tr>
			<td class="tableinfo center" width="10%" height="50">公司地址</td>
            <td class="tableinfo">
 				<input name="address" type="text" class="inputbox240" id=address check=2 tip="不能为空" value="${company.address}" />
            </td>
          </tr>
		  <tr>
			<td class="tableinfo center" width="10%" height="50">关于我们</td>
            <td class="tableinfo">
 				<textarea id="aboutUs" name="aboutUs" cols="100" rows="18">${company.aboutUs}</textarea>
            </td>
          </tr>
		  <tr>
			<td class="tableinfo center" width="10%" height="50">客服电话</td>
            <td class="tableinfo">
 				<input name="comPhone" type="text" class="inputbox240" id=comPhone check=2 tip="不能为空" value="${company.comPhone}" />
            </td>
          </tr>
		  <tr>
			<td class="tableinfo center" width="10%" height="50">客服邮箱</td>
            <td class="tableinfo">
            	<input name="comEmail" type="text" class="inputbox240" id=comEmail check=2 tip="不能为空" value="${company.comEmail}" />
            </td>
          </tr>
          <tr>
			<td class="tableinfo center" width="10%" height="50">&nbsp;</td>
            <td class="tableinfo">
			  <input name="submit" type="submit" onclick="bCancel=false" value=" 保存 " class="inputsubmit" />
			  &nbsp;
			  <input name="cancel" type="submit" onclick="bCancel=true" value=" 取消 " class="inputsubmit" />
            </td>
          </tr>
        </table>
	  </li>
	</ul>
	<ul>
	  <li class="pagelast"></li>
	</ul>
    </form:form>

  </body>
</html>